@extends('layout.index')

@section('title', '咨询管理')

@section('content')
<div class="mws-panel grid_8">
  <div class="mws-panel-header">
    <span>
      <i class="icon-table"></i>轮播图列表</span>
  </div>
  <div class="mws-panel-body no-padding">
    <div role="grid" class="dataTables_wrapper" id="DataTables_Table_1_wrapper">
      <table class="mws-datatable-fn mws-table dataTable" id="DataTables_Table_1" aria-describedby="DataTables_Table_1_info">
        <thead>
          <tr role="row">
            <th class="sorting_asc" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 31px;" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending">id</th>
            <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 53px;" aria-label="Browser: activate to sort column ascending">标题</th>
            <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 500px;" aria-label="Browser: activate to sort column ascending">咨询</th>
            <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 53px;" aria-label="CSS grade: activate to sort column ascending">操作</th></tr>
        </thead>
        <tbody role="alert" aria-live="polite" aria-relevant="all">
        @foreach($article as $k=>$v)
          <tr class="@if($k%2 == 0)
                    odd
                    @else
                    even
                    @endif
                    ">
            <td class="  sorting_1">{{$v->id}}</td>
            <td class=" ">{{$v->title}}</td>
            <td class=" ">{{$v->article}}</td>
            <td class=" ">
                <a href="/admin/article/edit/{{$v->id}}" style="color:black;"><i class="icon-tools"></i>修改</a>|
                <a href="/admin/article/delete/{{$v->id}}" style="color:black"><i class="icon-trash"></i>删除</a></td></tr>
        @endforeach
        </tbody>
      </table>
    </div>
  </div>
</div>
@endsection